package com.medicine.product.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Author sayid
 * @create 2020/9/15 18:01
 * com.vdf.pms.childprotect.dto
 */
@Getter
@Setter
public class OrderDto extends BasePageDto{

    /**
     * 关键字搜索
     */
    @ApiModelProperty("关键字搜索")
    private String key;

    /**
     *  开始条件
     **/
    @ApiModelProperty("开始时间")
    private String startTime;
    /**
     * 结束条件
     **/
    @ApiModelProperty("结束时间")
    private String endTime;

    @ApiModelProperty("社区id")
    @NotNull(message = "查看医生列表时，社区id不能为空")
    private String hospitalId;

    @ApiModelProperty("省份")
    private Integer province;

    @ApiModelProperty("地区")
    private Integer area;


    @ApiModelProperty("时间间隔")
    private Long diffTime;


    /**
     * 环比 =1 ，同比 = 2
     */
    private Integer rateType;

    @ApiModelProperty("排序 " +
            "{视力订单数量:order by eyesightCount ," +
            " 视力营收:  eyesightSum desc, " +
            "骨密度订单数量： bmdCount desc," +
            "骨密度订单营收:  bmdSum desc" +
            "gmv: gmv desc " +
            "毛利：grossProfit desc " +
            "总营收：orderSum desc " +
            "环比：m2m desc " +
            "同比：y2y desc} ")
    private String orderBy;


    private List<String> hospitalIds;


}
